<?php if (!isset($v_sval)) exit; ?>
<?php
	$v_image_id = (isset($_REQUEST["hdn_image_id"])) ? $_REQUEST["hdn_image_id"] : 0;
		$v_album_id = (isset($_REQUEST["txt_album_id"])) ? $_REQUEST["txt_album_id"] : 0;
		$v_image_location = (isset($_REQUEST["txt_image_location"])) ? $_REQUEST["txt_image_location"] : 0;
		$v_account_id = (isset($_REQUEST["txt_account_id"])) ? $_REQUEST["txt_account_id"] : 0;

if (!$v_image_id){
	$v_image_id = insertImage(
		$v_album_id
			,$v_image_location
			,$v_account_id
		
		 );
}else{
	updateImage(
		$v_image_id
			,$v_album_id
			,$v_image_location
			,$v_account_id
		
	 );	
}
redir("?a=ACC&acc=IMAG&imag=IMAG&imag=A");
?>	
